footer {
  margin-top: 0;
}

.header2 {
  background-image: url(/static/ebook/images/bgr2.png);
  background-repeat: round;
  width: 100%;
  height: 297px;
  /* position: relative; */
}

.body {
  background-color: rgba(244, 244, 244, 1);
  padding: 40px 296px;
  padding-right: 262px;
}

.title-header p {
  color: rgba(30, 30, 30, 1);
  font-size: 28px;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.tabs-cata {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-cata {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  width: 232px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(140, 140, 140, 1);
  margin: 0 12px;
  margin-bottom: 25px;
}

.tab-cata.active {
  background-color: rgba(205, 86, 81, 1);
  color: rgba(255, 255, 255, 1);
}

.tab-cata a {
  margin: 0;
  color: rgba(140, 140, 140, 1);
}

.tab-cata.active a {
  margin: 0;
  color: white;
}

.danhmuc-sach {
  margin: 25px 50px 25px 50px;
  position: relative;
}

.danhmuc-sach .gradient-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 297px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 17.71%,
    rgba(0, 0, 0, 0.24) 45.21%,
    rgba(0, 0, 0, 0.2) 59.38%,
    rgba(0, 0, 0, 0.08) 79.17%,
    rgba(217, 217, 217, 0) 100%
  );
}

.danhmuc-sach img {
  width: 210px;
  height: 297px;
  max-height: 297px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.danhmuc-sach p {
  margin-top: 20px;
  max-width: 210px;
  color: rgba(30, 30, 30, 1);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.danhmuc-sachs {
  display: flex;
  flex-wrap: wrap;
  margin-left: -34px;
  justify-content: center;
}

.danhmuc-sach a {
  display: block;
}

.pagination a {
  color: rgba(140, 140, 140, 1);
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
}

.pagination li.active {
  color: rgba(30, 30, 30, 1);
  background: rgba(224, 224, 224, 1);
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.pagination li.active a {
  color: rgba(30, 30, 30, 1);
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  justify-content: center;
  margin-top: 30px;
}

.class {
  display: flex;
  justify-content: space-evenly;
  border-bottom: 1px solid rgba(224, 224, 224, 1);
  margin-bottom: 50px;
}

.class-name {
  color: rgba(77, 77, 77, 1);
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 10px;
  margin: 0;
  width: 80px;
  text-align: center;
}

.class-name.active {
  color: rgba(205, 86, 81, 1);
  border-bottom: 3px solid rgba(205, 86, 81, 1);
}

@media (max-width: 1200px) {
  .title h3 {
    font-size: 30px;
  }
}

@media (max-width: 978px) {
  .danhmuc__select p {
    display: none;
  }

  .btn-show {
    margin-right: 30px;
  }

  .danhmuc__select {
    justify-content: space-between;
  }

  .danhmuc {
    width: 100%;
  }

  .danhmuc-sachs {
    margin-left: 0%;
  }

  .title h3 {
    font-size: 30px;
  }

  .body {
    padding: 40px 0px;
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .title h3 {
    font-size: 24px;
  }

  .danhmuc {
    width: 70%;
  }

  .header2 {
    height: 176px;
  }
}
